/*
 * @project java-awesome-examples
 * @file    GraalJSDemo
 * CREATE   2025年08月13日 13:51 下午
 * --------------------------------------------------------------
 * 0604hx   https://github.com/0604hx
 * --------------------------------------------------------------
 */

import org.graalvm.polyglot.Context;

public class GraalJSDemo {

    public static void main(String[] args) {
        try (Context context = Context.create()) {
            context.eval("js", "console.log(`来自 GraalJS 的问候！Time=${Date.now()}`)");
        }
    }
}
